package com.ruoyi.project.hcy.saleManagement.mapper;

import com.ruoyi.project.hcy.saleManagement.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderManagerMapper {

    List<ProjectVo> listFun(Project project);


    List<Order> selectProjectTypeName();

    String checkClientId(int parseInt);

    String checkCrewName(String crewName);

    String checkDeptPrincipal(String deptPrincipal);

    Project checkProjectTitle(String projectTitle);

    String checkScheduleId(int parseInt);

    Project checkProjectId(int projectId);

    int addSaveFun(Client client);

    int addSaveProjectFun(ProjectVo projectVo);

    int addSaveSchduleFun(Schedule schedule);

    Integer checkCrewNameCount(@Param("crewName") String crewName, @Param("deptName") String deptName);

    Integer checkdeptPrincipal(@Param("deptPrincipal") String deptPrincipal, @Param("deptName") String deptName);

    Integer selectCrewName(String crewName);


    ProjectVo selectProjectWithCrewAndClientAndSchedule(Integer id);

    int editSave(ProjectVo projectVo);

    String getDeptName();

    int deleteProjects(@Param("array") List<Integer> ids);

    int deleteClient(@Param("array") List<Integer> ids);

    int deleteSchedule(@Param("array") List<Integer> ids);
}
